package Task3;

public class Task3Arrays {
	public static void main(String[] args) {
		int a[]=new int[115];
		int i=1;
		Task3Arrays t3a = new Task3Arrays();

		for (; i <= 50; i++) {					if (i%3==0){
				System.out.println(i+" is divisible to 3");
			} else {			
			System.out.println(i);
			}
		}
		for (i = 0; i <a.length; i++) {
			a[i]=i+1;
		}
		System.out.println("Arithmetical mean of "+a.length+" elements="+t3a.avg(a));
	}
	public float avg(int[] a){
		int s=0;
		for (int i = 0; i <a.length; i++) {
			s+=a[i];
		}
		return s/a.length;
	}
}